home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_vol_gongshow.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  52 lines

  1. # Jones 3D Cog Script
  2. #
  3. # VOL_GongShow.cog
  4. #
  5. # [CM]
  6. #
  7. # Random screenshakes for unstable areas.
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ========================================================================================
  12.  
  13. symbols
  14.  
  15. #...........................MESSAGES...........................
  16.     message        startup
  17.     message        damaged
  18.     
  19. #...........................ACTORS...........................
  20.     
  21.     thing        player                                    local
  22.     
  23. #...........................PROPS...........................
  24.     thing        gong                                    mask=0x408                            
  25.     
  26. #...........................SOUNDS...........................
  27.     sound        bellhit=shs_bell_dull.wav                local
  28.  
  29. end
  30.  
  31. # ========================================================================================
  32. code
  33.  
  34. startup:
  35.  
  36.     player = GetLocalPlayerThing();
  37.     return;
  38.  
  39. # ========================================================================================
  40. damaged:
  41.  
  42.     
  43.     if (GetSenderRef() == gong)
  44.     {
  45.         PlaySoundThing(bellhit, gong, 1.0, 6, 20, 0);
  46.     }
  47. return;
  48.  
  49. # ========================================================================================
  50. end
  51.  
  52.